<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <div id="test">修改页面值，看是否会刷新</div>
    <button id="btn">点击修改上面的值</button>
    <hr />
    <form name="input" action="" method="get">
      First name:
      <input type="text" name="FirstName" value="Mickey" size="20" />
      <br />
      Last name:
      <input type="text" name="LastName" value="Mouse" size="20" />
      <br />
      <input type="submit" value="Submit" />
    </form>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script>
      $(function () {
        // 按钮点击
        $('#btn').click(function () {
          $('#test').html('修改后')
        })
        // 表单提交
        $('form').submit(function () {
          alert('submitted')
        })
      })
    </script>
  </body>
</html>
